package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author FengHuan Wang
 * @Date 2025/1/4 9:43
 * @Version 1.0
 */
@Mapper
public interface OrderDetailMapper {
    void insertBantch(List<OrderDetail> orderDetailList);

    @Select("select * from order_detail where order_id = #{orderId}")
    List<OrderDetail> getByOrderId(Long ordersId);

    void batchInsert(List<OrderDetail> orderDetailList);
}
